const nowGame = {
  id: '0',
  name: '中国掼牌（南京）俱乐部“苏掼·欢乐聚会杯”冠军联赛月度决赛',
  status: 1,
  stateTxt: '比赛中',
  offSize: 20,
  allSize: 60,
  offTime: '2025-09-01-10:00',
  startTime: '2025-09-01-10:00',
  endTime: '2025-09-01-10:00',
  type: 1,
};
const pageGame = {
  current: 1,
  total: 10,
  pageSize: 10,
  list: [
    {
      id: '1',
      url: 'http://gips2.baidu.com/it/u=195724436,3554684702&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960',
      name: '中国掼牌（南京）俱乐部“苏掼·欢乐聚会杯”冠军联赛月度决赛1',
      status: 1,
      offSize: 20,
      allSize: 60,
      offTime: '2025-09-01-10:00',
      startTime: '2025-09-01-10:00',
      endTime: '2025-09-01-10:00',
      type: 1,
    },
    {
      id: '2',
      url: 'http://gips2.baidu.com/it/u=195724436,3554684702&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960',
      name: '中国掼牌（南京）俱乐部“苏掼·欢乐聚会杯”冠军联赛月度决赛2',
      status: 1,
      offSize: 1,
      allSize: 11,
      offTime: '2025-09-01-10:00',
      startTime: '2025-09-01-10:00',
      endTime: '2025-09-01-10:00',
      type: 1,
    },
    {
      id: '3',
      url: 'http://gips2.baidu.com/it/u=195724436,3554684702&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960',
      name: '中国掼牌（南京）俱乐部“苏掼·欢乐聚会杯”冠军联赛月度决赛3',
      status: 1,
      offSize: 20,
      allSize: 23,
      offTime: '2025-09-01-10:00',
      startTime: '2025-09-01-10:00',
      endTime: '2025-09-01-10:00',
      type: 1,
    },
    {
      id: '4',
      url: 'http://gips2.baidu.com/it/u=195724436,3554684702&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960',
      name: '中国掼牌（南京）俱乐部“苏掼·欢乐聚会杯”冠军联赛月度决赛4',
      status: 1,
      offSize: 20,
      allSize: 123,
      offTime: '2025-09-01-10:00',
      startTime: '2025-09-01-10:00',
      endTime: '2025-09-01-10:00',
      type: 1,
    },
    {
      id: '5',
      url: 'http://gips2.baidu.com/it/u=195724436,3554684702&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960',
      name: '中国掼牌（南京）俱乐部“苏掼·欢乐聚会杯”冠军联赛月度决赛5',
      status: 2,
      offSize: 21,
      allSize: 60,
      offTime: '2025-09-01-10:00',
      startTime: '2025-09-01-10:00',
      endTime: '2025-09-01-10:00',
      type: 1,
    },
    {
      id: '6',
      url: 'http://gips2.baidu.com/it/u=195724436,3554684702&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960',
      name: '中国掼牌（南京）俱乐部“苏掼·欢乐聚会杯”冠军联赛月度决赛6',
      status: 3,
      offSize: 20,
      allSize: 43,
      offTime: '2025-09-01-10:00',
      startTime: '2025-09-01-10:00',
      endTime: '2025-09-01-10:00',
      type: 1,
    },
    {
      id: '7',
      url: 'http://gips2.baidu.com/it/u=195724436,3554684702&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960',
      name: '中国掼牌（南京）俱乐部“苏掼·欢乐聚会杯”冠军联赛月度决赛7',
      status: 4,
      offSize: 22,
      allSize: 60,
      offTime: '2025-09-01-10:00',
      startTime: '2025-09-01-10:00',
      endTime: '2025-09-01-10:00',
      type: 1,
    },
  ],
};
export default {
  'GET /pc/game/now': (req: any, res: any) => {
    res.json({
      success: true,
      data: nowGame,
      errorCode: 0,
    });
  },
  'GET /pc/game/page': (req: any, res: any) => {
    res.json({
      success: true,
      data: pageGame,
      errorCode: 0,
    });
  },
  'GET /pc/game/rules/page': (req: any, res: any) => {
    res.json({
      success: true,
      data: {
        current: 1,
        total: 10,
        pageSize: 10,
        list: [{
          rulesId: '1221121',
          type: 1,
          name: '积分晋级赛',
          state: 1,
          json: '{basicPoints:30,promotePoints:150,rankingCheck:[1,2],pointsRatio:0.6,abstainTime:45,outPoints:0}'
        }, {
          rulesId: '3333',
          type: 2,
          state: 2,
          name: '积分编排赛',
          json: '{}'
        }]
      },
      errorCode: 0,
    });
  },
  'POST /pc/game/rules/editRules': (req: any, res: any) => {
    res.json({
      success: true,
      data: true,
      errorCode: 0,
    });
  },
  'POST /pc/game/rules/updateState': (req: any, res: any) => {
    res.json({
      success: true,
      data: true,
      errorCode: 0,
    });
  },
  'GET /pc/game/rules/queryCommRules': (req: any, res: any) => {
    res.json({
      success: true,
      data: "测试刮痧的阿德阿斯达大大是的发顺丰阿斯顿发生懂法守法阿斯顿发生懂法守法",
      errorCode: 0,
    });
  },
  'POST /pc/game/rules/editCommRules': (req: any, res: any) => {
    res.json({
      success: true,
      data: true,
      errorCode: 0,
    });
  },
  'GET /pc/game/rules/queryRules': (req: any, res: any) => {
    res.json({
      success: true,
      data: {
        rulesId: '3333',
        type: 1,
        state: 1,
        name: '积分编排赛',
        json: '{"basicPoints": 1, "promotePoints": 2, "rankingCheck": [1, 2], "pointsRatio": 60, "abstainTime": 45, "outPoints": 0}'
      },
      errorCode: 0,
    });
  },
  'GET /pc/game/info': (req: any, res: any) => {
    res.json({
      success: true,
      data: {
        url: ['https://pic.rmb.bdstatic.com/bjh/down/la12K-cnuJoyV7g8T_H2Fw3a93f5b952a34334ba561a477674a0ba.jpg'],
        gameId: 2121212,
        address: "南京市建邺区",
        allSize: 48,
        category: 1,
        offSize:30,
        signleOffSize:10,
        commRoules: 1,
        endTime: "2025-10-07 17:00:00",
        name: "赛事测试",
        offTime: "2025-10-07 09:00:00",
        person: "项目",
        phone: "1538092455",
        range: 1,
        ruleJson: "{\"basicPoints\":1,\"promotePoints\":2,\"rankingCheck\":[1,2],\"pointsRatio\":60,\"abstainTime\":45,\"outPoints\":0}",
        singleOff: 1,
        startTime: "2025-10-07 09:30:00",
        type: 1
      },
      errorCode: 0,
    });
  },

  'POST /pc/game/postFile': (req: any, res: any) => {
    res.json({
      success: true,
      data: 'https://pic.rmb.bdstatic.com/bjh/down/la12K-cnuJoyV7g8T_H2Fw3a93f5b952a34334ba561a477674a0ba.jpg',
      errorCode: 0,
    });
  },
'GET /pc/game/points/rank': (req: any, res: any) => {
    res.json({
      success: true,
      data: [{
        rankIndex: 1,
        gameId: '123',
        state: 2,
        teamPoints:100,
        team: {
          teamPerson: {
            playerId: 'dxx',//选手
            playerName: '张三',//选手
            playerPhonse: '15380924577',//手机
            playerState: 1,//状态 1-已签到  否则未签到
          },
          teamPerson2:  {
            playerId: 'dxx2',//选手
            playerName: '张三2',//选手
            playerPhonse: '15380922227',//手机
            playerState: 1,//状态 1-已签到  否则未签到
          },
        }
      },{
        rankIndex: 2,
        gameId: '123',
        state: 1,
        teamPoints:80,
        team: {
          teamPerson: {
            playerId: 'dxx',//选手
            playerName: '张三',//选手
            playerPhonse: '15380924577',//手机
            playerState: 1,//状态 1-已签到  否则未签到
          },
          teamPerson2:  {
            playerId: 'dxx2',//选手
            playerName: '张三2',//选手
            playerPhonse: '15380922227',//手机
            playerState: 1,//状态 1-已签到  否则未签到
          },
        }
      },{
        rankIndex: 3,
        gameId: '123',
        state: 1,
        teamPoints:80,
        team: {
          teamPerson: {
            playerId: 'dxx',//选手
            playerName: '张三',//选手
            playerPhonse: '15380924577',//手机
            playerState: 1,//状态 1-已签到  否则未签到
          },
          teamPerson2:  {
            playerId: 'dxx2',//选手
            playerName: '张三2',//选手
            playerPhonse: '15380922227',//手机
            playerState: 1,//状态 1-已签到  否则未签到
          },
        }
      },{
        rankIndex: 4,
        gameId: '123',
        state: 3,
        teamPoints:80,
        team: {
          teamPerson: {
            playerId: 'dxx',//选手
            playerName: '张三',//选手
            playerPhonse: '15380924577',//手机
            playerState: 1,//状态 1-已签到  否则未签到
          },
          teamPerson2:  {
            playerId: 'dxx2',//选手
            playerName: '张三2',//选手
            playerPhonse: '15380922227',//手机
            playerState: 1,//状态 1-已签到  否则未签到
          },
        }
      },
     ],
      errorCode: 0,
    });
  },
};
